package com.example.spring_boot_canal.canal;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConditionalOnProperty( name="canal.ip", matchIfMissing = false)
@ConfigurationProperties(prefix = "canal")
@Component
@Data
public class CanalConfig {

    private String ip;

    private int port = 11111;

    private String destination = "example";

    private String subscribe=".*\\..*";

    private String username;

    private String password;

    private int batchSize =1000;

}
